package simulator.ui;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class AboutAction extends AbstractAction
{
   private static final long serialVersionUID = 1L;
   private JFrame parent = null;
   
   public AboutAction(JFrame parent)
   {
      this.parent = parent;
      putValue(Action.NAME, "About OS Simulator");
   }
 
   public void actionPerformed(ActionEvent e)
   {
      JOptionPane.showMessageDialog(parent,
            "OS Simulator v0.1 (LGPL) 2008", 
            "About", JOptionPane.INFORMATION_MESSAGE);      
   }
}
